Optimal. Leaf size=112 \[ \frac {2 (5 A+7 C) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {b \sec (c+d x)}}{21 b^4 d}+\frac {2 (5 A+7 C) \sin (c+d x)}{21 b^3 d \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{7 d (b \sec (c+d x))^{7/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 112, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {4130, 3854,
3856, 2720} \begin {gather*} \frac {2 (5 A+7 C) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {b \sec (c+d x)}}{21 b^4 d}+\frac {2 (5 A+7 C) \sin (c+d x)}{21 b^3 d \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{7 d (b \sec (c+d x))^{7/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2720
Rule 3854
Rule 3856
Rule 4130
Rubi steps
\begin {align*} \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{7/2}} \, dx &=\frac {2 A \tan (c+d x)}{7 d (b \sec (c+d x))^{7/2}}+\frac {(5 A+7 C) \int \frac {1}{(b \sec (c+d x))^{3/2}} \, dx}{7 b^2}\\ &=\frac {2 (5 A+7 C) \sin (c+d x)}{21 b^3 d \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{7 d (b \sec (c+d x))^{7/2}}+\frac {(5 A+7 C) \int \sqrt {b \sec (c+d x)} \, dx}{21 b^4}\\ &=\frac {2 (5 A+7 C) \sin (c+d x)}{21 b^3 d \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{7 d (b \sec (c+d x))^{7/2}}+\frac {\left ((5 A+7 C) \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{21 b^4}\\ &=\frac {2 (5 A+7 C) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {b \sec (c+d x)}}{21 b^4 d}+\frac {2 (5 A+7 C) \sin (c+d x)}{21 b^3 d \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{7 d (b \sec (c+d x))^{7/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.47, size = 79, normalized size = 0.71 \begin {gather*} \frac {\frac {4 (5 A+7 C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{\sqrt {\cos (c+d x)}}+2 (13 A+14 C+3 A \cos (2 (c+d x))) \sin (c+d x)}{42 b^3 d \sqrt {b \sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 21.00, size = 241, normalized size = 2.15
method | result | size |
default | \(-\frac {2 \left (1+\cos \left (d x +c \right )\right )^{2} \left (-1+\cos \left (d x +c \right )\right ) \left (5 i A \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+7 i C \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-3 A \left (\cos ^{4}\left (d x +c \right )\right )+3 A \left (\cos ^{3}\left (d x +c \right )\right )-5 A \left (\cos ^{2}\left (d x +c \right )\right )-7 C \left (\cos ^{2}\left (d x +c \right )\right )+5 A \cos \left (d x +c \right )+7 C \cos \left (d x +c \right )\right )}{21 d \sin \left (d x +c \right )^{3} \left (\frac {b}{\cos \left (d x +c \right )}\right )^{\frac {7}{2}} \cos \left (d x +c \right )^{4}}\) | \(241\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 1.00, size = 119, normalized size = 1.06 \begin {gather*} \frac {\sqrt {2} {\left (-5 i \, A - 7 i \, C\right )} \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + \sqrt {2} {\left (5 i \, A + 7 i \, C\right )} \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 2 \, {\left (3 \, A \cos \left (d x + c\right )^{3} + {\left (5 \, A + 7 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {b}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{21 \, b^{4} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A + C \sec ^{2}{\left (c + d x \right )}}{\left (b \sec {\left (c + d x \right )}\right )^{\frac {7}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {A+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\left (\frac {b}{\cos \left (c+d\,x\right )}\right )}^{7/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________